<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>显示常规格式的日期与时间</title>
</head>

<body>
<div id="showtime" >
 <script>
      setInterval("showtime.innerHTML='当前日期和时间：'+new Date().toLocaleString()",1000);
 </script>
</div>
</body>
</html>
